package com.yycx.module.bus.client.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;
/**
 * 客户账户收支记录
 *
 * @author flyme
 * @date 2023-10-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_custom_balance_log")
@TableAlias("bcbl")
@ApiModel(value="BusCustomBalanceLog对象", description="客户账户收支记录")
public class BusCustomBalanceLog extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "customBalanceLogId", type = IdType.ASSIGN_ID)
    private Long customBalanceLogId;

    @ApiModelProperty(value = "账户ID")
    private Long customBalanceId;

    @ApiModelProperty(value = "客户ID")
    private Long customId;

    @ApiModelProperty(value = "账套ID")
    private Long companyId;

    @ApiModelProperty(value = "海鹰ID")
    private String customCode;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "账户类型(1 货款 2预收款)")
    private Integer amountType;

    @ApiModelProperty(value = "类型(1:收 2:支)")
    private Integer optType;

    @ApiModelProperty(value = "业务员")
    private Long userId;

    @ApiModelProperty(value = "交易日期")
    private Date amountDate;


    @ApiModelProperty(value = "收款账户")
    private Long bankId;

    @ApiModelProperty(value = "备注")
    private String remark;

}
